package com.ls.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author ls
 * @since 2025-04-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class  SysMenu implements Serializable {

  private static final long serialVersionUID=1L;

  /**
   * 菜单或权限ID
   */
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;

  /**
   * 父级菜单或权限ID
   */
  private Integer pid;


  /**
   * 菜单或权限名称
   */
  private String title;

  /**
   * 菜单图标
   */
  private String icon;

  /**
   * 菜单栏跳转路径
   */
  private String href;

  /**
   * 菜单是否展开
   */
  private Integer open;


  /**
   * 状态【0不可用1可用】
   */
  private Integer available;


  private String type;

  private String permissionCode;

  @TableField(exist = false)
  private List<SysMenu> children; // 子菜单列表


}